﻿<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8">
	<title>直播账号</title>
<link rel="stylesheet" href="/scriptZIP/layui.min.css">
	<link rel="stylesheet" href="css/common2.css" />
	<link rel="stylesheet" href="../css/layui.css" />
	<style>
		.layui-row {
			margin-top: 50px;
		}
	</style>
</head>

<body>
	<form class="layui-form">
		<div class="layui-row" id="vue-root">
			<div></div>
			<div class="layui-col-md6 layui-col-md-offset3">
				<div class="layui-form-item">
					<label class="layui-form-label">名称</label>
					<div class="layui-input-block">
						<input name="name" v-validate="'required'" autocomplete="off" placeholder="请输入直播账号名称"
							class="layui-input name" v-model="item.name">
						<div class="checkout_state" v-text="err('name')">
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">AppKey</label>
					<div class="layui-input-block">
						<input name="appKey" v-validate="'required'" autocomplete="off" placeholder="请输入AppKey"
							class="layui-input tag" v-model="item.appKey">
						<div class="checkout_state" v-text="err('appKey')">
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">Secret</label>
					<div class="layui-input-block">
						<input name="secret" v-validate="'required'" autocomplete="off" placeholder="请输入secret"
							class="layui-input appSecret" v-model="item.secret">
						<div class="checkout_state" v-text="err('secret')">
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<div class="offer" @click="submit1">立即提交</div>
						<div class="return" onclick="history.back()">取消</div>
					</div>
				</div>
			</div>
		</div>
	</form>

	<script src="/scriptZIP/qs.min.js"></script>
	<script src="/scriptZIP/vue.min.js"></script>
	
	
	<script src="/scriptZIP/axios.min.js"></script>

	<script src="/js/common.js"></script>
	<script src="/js/item.js"></script>

	<script>
		var app = new Vue(merge({
			data: {
				url: '/pc/ys7'
			},
			methods: {
				submit1: function () {
					if (/agent/.test(top.location.href))
						this.item.agentId = top_params().id;
					this.submit();
				}
			}
		}));

	</script>


</body>

</html>